package com.csdj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csdj.entity.Contact;
import com.csdj.mapper.ContactMapper;
import com.csdj.service.IContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: organic-catering
 * @description: 实现接口类
 * @author: 大臣
 * @create: 2024-12-19 09:27
 **/
@Service
public class ContactServiceImpl implements IContactService{
    @Autowired
    private ContactMapper contactMapper;

    @Override
    public int addContact(String contactName, String contactEmail, String contactPhone, String contactTitle, String contactMessage) {
        return contactMapper.addContact(contactName, contactEmail, contactPhone, contactTitle, contactMessage);
    }
}
